import compileFn from './jtts'

export const compile = async (schema: any, name: string, options: any = {}) => {
    try {
        const result = await compileFn(schema, name, {
            bannerComment: '',
            ...options,
        })
        return result
    } catch (err) {
        console.log(err)
        return ''
    }
}
